/**
 * Copyright (C), 2015-2021, XXX有限公司
 * FileName: TestController
 * Author:   Administrator
 * Date:     2021/5/14 11:27
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.gym.controller;

import com.gym.interfac.Login;
import com.gym.interfac.RequiredPermission;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 〈一句话功能简述〉<br>
 * 〈〉
 *
 * @author 杨朝湖
 * @create 2021/5/14
 * @since 1.0.0
 */
@RestController
public class TestController {
    @RequiredPermission("user:add")
    @GetMapping("/add")
    public String add() {
        return "Add";
    }

    @RequiredPermission("user:update")
    @GetMapping("/update")
    public String update() {
        return "update";
    }

    @RequiredPermission("user:delete")
    @GetMapping("/delete")
    public String delete() {
        return "delete";
    }

    @RequiredPermission("user:select")
    @GetMapping("/select")
    public String select() {
        return "select";
    }

    @Login
    @GetMapping("/login")
    public String login() {
        return "login";
    }
}